﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CountTools
{
    public partial class ChangeKeyWordForm : Form
    {
        private CodeNameRuleForm codeNameRuleForm;

        public ChangeKeyWordForm()
        {
            InitializeComponent();
        }

        public ChangeKeyWordForm(CodeNameRuleForm codeNameRuleForm)
        {
            InitializeComponent();
            this.codeNameRuleForm = codeNameRuleForm;
        }



        private void button1_Click(object sender, EventArgs e)
        {
            string tempString = this.richTextBox1.Text.ToString();
            codeNameRuleForm.saves2 = tempString.Replace('\n', ',');
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
